//
//  UIViewController+CreaeaNaviBar.h
//  ShunLianPower2
//
//  Created by 顺联网络 on 2017/11/29.
//  Copyright © 2017年 陈镇. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, NaviBatItemType) {
    NaviBatItemTypeLeft = 1,
    NaviBatItemTypeRigth,
};

typedef void(^SLNaviItemBlick)(UIButton *btn, NSInteger index);
@interface UIViewController (CreaeaNaviBar)
-(UIBarButtonItem *)createNaviBarItem:(NaviBatItemType)type image:(nullable NSString *)imageName title:(nullable NSString *)title action:(SEL)action color:(UIColor*)color;
-(UIBarButtonItem *)createNaviBarItem:(NaviBatItemType)type image:(nullable NSString *)imageName title:(nullable NSString *)title action:(SEL)action;

/**
 创建navigation BarItem

 @param type 左边或右边
 @param items 里面是每个item的属性  image title color
            selectImage selectTitle selectColor imagePosition 上面7个都是可选的
 @param block 点击事件回调   - 从左到右 index
 */
- (void)createNaviBarItem:(NaviBatItemType)type items:(NSArray*)items block:(SLNaviItemBlick)block;


-(UIButton *)getRigthMoreBotton;


-(UIButton *)getRigthMoreBottonTag:(NSInteger)tag;
@end
NS_ASSUME_NONNULL_END
